objs 		= main.o em.o klist.o builtin.o 
target 		= em
CFLAGS 		= -Wall -Wextra -Werror -g -Iinclude 


$(target): $(objs)
	@$(CC) $(objs) -o $(target)
	@echo -e "\tLD\t\t\t$(target)"


%.o: %.c
	@$(CC) -c $*.c $(CFLAGS)
	@echo -e "\tCC\t\t\t$*.c"

.PHONY clean:
	rm -f $(objs) $(target)

